/**
 * @file main.css
 * @brief 云存储系统主样式表
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.content {
    padding: 40px;
}

.upload-section, .download-section {
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 15px;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4facfe;
    padding-bottom: 10px;
}

.upload-area {
    border: 3px dashed #4facfe;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #00f2fe;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.upload-area .icon {
    font-size: 3em;
    color: #4facfe;
    margin-bottom: 20px;
}

.upload-area .text {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 10px;
}

.upload-area .subtext {
    color: #999;
    font-size: 0.9em;
}

#fileInput {
    display: none;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4facfe;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
    background: white;
    display: none;
}

.result.success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.result.error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.progress {
    margin-top: 20px;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    width: 0%;
    transition: width 0.3s ease;
}

.file-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #e1e5e9;
}

.file-info div {
    margin-bottom: 5px;
}

.file-info strong {
    color: #333;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .content {
        padding: 20px;
    }
} 